<template>
  <div>
    <div>
      <h1>商品分类管理</h1>
      <hr />
      <div class="shang">
        <div>
          <el-button type="primary">添加</el-button>

          <el-button>清除缓存</el-button>
        </div>
        <div>
          <el-button type="danger">批量删除</el-button>
        </div>
      </div>
    </div>

    <div>
    
        <div>
  <el-table
    :data="tableData"
    style="width: 100%;margin-bottom: 20px;"
    row-key="id"
    border
    default-expand-all
    :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
    <el-table-column
      prop="date"
      label="日期"
      sortable
      width="180">
    </el-table-column>
    <el-table-column
      prop="name"
      label="姓名"
      sortable
      width="180">
    </el-table-column>
    <el-table-column
      prop="address"
      label="地址">
    </el-table-column>
  </el-table>

    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.shang {
  display: flex;
  justify-content: space-between;
}
</style>